package com.ps.exception;


import com.ps.enums.ErrorCode;
import lombok.Data;

/**
 * @description:业务异常类
 * @author:Lisa
 * @create:2019/07/08
 */
@Data
public class BusinessException extends RuntimeException {
    private Integer code;

    public BusinessException(ErrorCode e) {
        this.code = e.getCode();
    }
}